package com.bzy.controller;

import com.bzy.User;
import com.bzy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ Author     : Bzy.
 * @ Date       : 2020/12/28 -- 16:18
 * @ Version:     $ 1.0
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/user")
    public List<User> getAllUser(){
        List<User> allUser = userService.getAllUser();
        return allUser;
    }

   /* public  Integer  addOneUser(User user);

    public  Integer  setOneUser(User  user);

    public  Integer  delOneUser(Integer uid);*/


}
